package chuangyi.com.org.DOMIHome.Fragments;

import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.view.View;

import chuangyi.com.org.DOMIHome.BR;
import chuangyi.com.org.DOMIHome.HomeActivity;
import chuangyi.com.org.ViewModel.ContextObservable;

/**
 * Created by zxh on 16/11/17.
 */

public class FragmentGoBackHandler extends BaseObservable {
    private String title;
    private String secondTitle;

    @Bindable
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
        notifyPropertyChanged(BR.title);
    }

    @Bindable
    public String getSecondTitle() {
        return secondTitle;
    }

    public void setSecondTitle(String secondTitle) {
        this.secondTitle = secondTitle;
        notifyPropertyChanged(BR.secondTitle);
    }

    public FragmentGoBackHandler(){
    }

    public void onClickGoBack(View view){
        HomeActivity.popFragment();
    }

    public void onClickCancel(View view){
        HomeActivity.cancelFragment();
    }
}
